package com.soft.javase.day04.computer;

/**
 * @author yzg
 * @desc TODO
 * @date 2025/4/21
 */
public class Test {
    public static void main(String[] args) {
        Computer computer = new Computer();

        computer.setStorage(new UPan());
        computer.readData();
        computer.writeData();

        computer.setStorage(new MobileHardPan());
        computer.readData();
        computer.writeData();

        computer.setStorage(new MP3());
        computer.readData();
        computer.writeData();
        computer.mp3Player();

    }
}
